<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.ffcs.security.model.Resource" table="T_SECU_RESOURCE">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator  class="cn.ffcs.util.hibernate.generator.MyGenerator">
				<param name="table">T_COMM_SEQUENCE</param>
				<param name="column">NEXT_VAL</param>
				<param name="sequence_column">NAME</param>
				<param name="sequence_name">S_SECU_RESOURCE</param>
			</generator>
        </id>
        <property name="resourceType" type="java.lang.String">
            <column name="RESOURCE_TYPE" length="32" not-null="true" />
        </property>
        <property name="name" type="java.lang.String">
            <column name="name" length="256" not-null="true" />
        </property>
        <property name="key" type="java.lang.String">
            <column name="key" length="32" not-null="true" />
        </property>
        <property name="value" type="java.lang.String">
            <column name="value" length="32" not-null="true" />
        </property>
        <property name="disport" type="java.lang.Integer">
            <column name="disport" length="3" />
        </property>
        <property name="creator" type="java.lang.String">
            <column name="creator" length="32" not-null="true" />
        </property>
        <property name="begin"  type="timestamp">
            <column name="begin" length="32"/>
        </property>
        <property name="end" type="timestamp">
            <column name="end" length="32"/>
        </property>
    </class>
</hibernate-mapping>